xquery version "0.9-ml"

(:
$element is the element to check for
:)

let $arg_element := xdmp:get-request-field("element")
let $arg_value   := xdmp:get-request-field("value")


(:these variables are for testing :)
(:
let $arg_element := "doc('jasonmonberg.xml')/jasonmonberg/portino/feeds/savedItems/savedItem/item/guid"
let $arg_value   := "tag:blogger.com,1999:blog-15674584.post-3736936950689022654"
:)

let $arg := fn:concat($arg_element," = '",$arg_value,"'")

return
xdmp:eval($arg)